#ifndef __NAVIGATIONMAPPANEL_H__
#define __NAVIGATIONMAPPANEL_H__

#include "../workbasepanel.h"

class CNavigationMapPanel: public CWorkBasePanel{
public:
    static CNavigationMapPanel* GetInterface();
    CNavigationMapPanel( float fLeft, float fTop, float fWidth, float fHeight );
    virtual ~CNavigationMapPanel();
    virtual void Init();
    virtual void Final();
    virtual int32 Update( int32 nDelta, float fDelta );
    virtual int32 Render();
    virtual void Enter();
    virtual void Leave();
    virtual void OnSelected( CUIElement* pSelf, int32 nType, int32 nIndex );
    virtual void OnClick( CUIElement *pSelf );
    virtual int32 OnTextEditEvent( CUIElement *pSelf, const char* strText );

    int32 GetSelectTerrainBrushType(){ return m_nSelectBrushShapeType; }
    int32 GetSelectTerrainBrushSize(){ return m_nSelectBrushSize; }
    int32 GetSelectNavigationDataType();
    int32 GetEditData(){ return m_nEditData; }
    color32 GetEditColor(){ return m_cEditColor; }
    void SetBrushSizeMode( int32 nMode );
    void SetBrushShapeMode( int32 nMode );

private:
    void OnNotification_UpdateUIControl_Event( int32 w, int32 l, void* pData );
    class CSceneObjectNavigationMap* m_pNavigationMap;

    CLable* m_pBrushSizeLB;
    CLable* m_pBrushShapeLB;
    CIconButton* m_vBrushSizeList[ 5 ];
    int32 m_nSelectBrushSize;

    CIconButton* m_vBrushShapeList[ 2 ];
    int32 m_nSelectBrushShapeType;

    int32 m_nEditData;

    CLable* m_pColorLB;
    CButton* m_pColorBtn;
    color32 m_cEditColor;
};

#endif